//
//  MsgBoxLayer.h
//  airfight
//
//  Created by lahm on 12-12-2.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef __airfight__MsgBoxLayer__
#define __airfight__MsgBoxLayer__

#include "cocos2d.h"

USING_NS_CC;

class MsgBoxLayer: public CCLayerColor
{
public:
    CCMenu *m_pMenu;
    bool m_bTouchedMenu;
    
public:
    MsgBoxLayer();
    ~MsgBoxLayer();
    
    virtual bool init();
    void initDialog(char *text, SEL_MenuHandler okHandler, SEL_MenuHandler cancelHandler);
    
    LAYER_NODE_FUNC(MsgBoxLayer);
    
    void onEnter();
    void onExit();
    
    void clickCancel();
    
    virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
    virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
    virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
    virtual void ccTouchCancelled(CCTouch *pTouch, CCEvent *pEvent);
};

#endif /* defined(__airfight__MsgBoxLayer__) */
